Changing the configuration of rules

When objects are validated, these objects are examined based on some predefined rules. You are able to inspect and change the configuration of these rules as follows:

  1. Perform one of the following steps – depending on the validation you want to execute:

    1. For a validation relating to the type: Open the properties of the project and select the group Validation.
      Result: The property page Validation is displayed.

    2. For a validation relating to the instance: Expand the PLC-object displayed in the project explorer, open the context menu for the resource displayed in the sub-level and select the command Configure Validation...
      Result: The dialog Configure Validation for resource-name is displayed.

  2. In the table, display the rule group in order to display the appertaining rules.

  3. First select the rule for which to want to change the settings. Only then change the settings per rule.
    If it is not possible to change settings for a rule, the rule configuration itself forbids the corresponding change. See "Rules for the validation of an application" which settings of a rule can be changed.
    As a general rule, the following changes are possible within the table:

    1. Activate or deactivate a rule by clicking onto the column Active or double-clicking the name. The displayed icon indicates whether the rule is actived () or deactivated ().

    2. Change the severity of the rule by clicking onto the column Severity and selecting one severity from the list.

    3. Change the type of the rule by clicking onto the column Type and selecting one type from the list.

  4. Click Apply and/or OK.

Good to know

(grey lightbulb) If the changed configuration is not applied as you expected, Neuron recommends one of the following actions:

  • Close all opened editors and re-open them so that the changed configuration is applied to these editors.

  • If you want to discard your changes and you want to restore the predefined settings for the rules, click Restore Defaults in the property page Validation or in the dialog Configure Validation for resource-name. See "Rules for the validation of an application" for the predefined settings of the rules.

Possible severities

The severity determines the severity when a rule violation is reported.

Severity

Meaning

INFO

reported as information

WARNING

reported as warning
(info) It is possible to suppress warnings for the validation.

ERROR

reported as error

Possible types

The type determines the moment when the rule is checked.

Type

Meaning

EXPENSIVE

The check is done, when you select a command to start the validation. The following commands trigger a validation with type EXPENSIVE:

  • Validate Object (context menu in the project explorer)
    The results of the examination are displayed within the Validate: object name view. Moreover, messages in the Problems view inform about the rule violation (as error, warning or information, the rule violation is highlighted accordingly within the opened editor (providing that this highlighting is possible) and the object in the project explorer is highlighted accordingly.
    Notes on using Validate Object:

    • If an editor is closed and it is opened after the validation, the rule violations within this opened editor are not highlighted and the object in the project explorer is not highlighted.

    • If you fix rule violations, the messages in the Problems view are not updated after the change is saved and the highlighting in the opened editors and in the project explorer is kept. Workaround: Select Validate Object again.

    • If you clean a project, the objects are not validated during this cleaning of the project. Hence, if you have already fixed some rule violations, the highlighting since the last validation is still displayed – although the project has been cleaned.

  • Validate (context menu in the ST-editor)
    Messages in the Problems view inform about the rule violation (as error, warning or information and the rule violation is highlighted accordingly within the opened ST-editor (providing that this highlighting is possible).
    Please observe: This validation is done only with rules that are apply to an editor content. Example: The rule Only identifiers conform to predefined specifications must be used for projects/folders/objects will not be applied, although the type EXPENSIVE is set for it.

NORMAL

The check is done when the content is saved in an editor with validation (e.g. within the ST-editor or FBD-editor). Messages in the Problems view inform about the rule violation (as error, warning or information, the rule violation is highlighted accordingly within the opened editor (providing that this highlighting is possible) and the object in the project explorer is highlighted accordingly.

Moreover, the check is also done, when you select a command to start the validation.

(warning) Many rules with type NORMAL might slow the saving process down.

FAST

The check is done when anything is entered in an editor with validation. The rule violation is highlighted accordingly within the opened editor (providing that this highlighting is possible).

Moreover, the check is also done, when you save the editor content or you select a command to start the validation.

(warning) Many rules with type FAST might slow the working within the editor as well as the saving process down.